package com.bkq.viettravel;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AddPlan extends Activity{
	
	public LoaderImageView image_addplan = null;
	
	Button bntHome, bntFavorite, bntPlan, bntAbout, bntBack, bntSave, bntCancel;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.addplan);
        
        image_addplan = (LoaderImageView) findViewById(R.id.addplan_Ima);
        
        bntHome = (Button) findViewById(R.id.addplan_Bnt_home);
        bntFavorite = (Button) findViewById(R.id.addplan_Bnt_favourite);
        bntPlan = (Button) findViewById(R.id.addplan_Bnt_plan);
        bntAbout = (Button) findViewById(R.id.addplan_Bnt_info);
        bntBack = (Button) findViewById(R.id.addplan_Bnt_back);
        bntSave = (Button) findViewById(R.id.addPlan_Bnt_cancel);
        bntCancel = (Button) findViewById(R.id.addPlan_Bnt_cancel);
        
        bntHome.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				bntHome.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_trangchinh_selected));
				bntPlan.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_kehoach));
				Intent i = new Intent(AddPlan.this,VietTravelActivity.class);
				startActivity(i);
			}
		});
        
        bntFavorite.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				bntFavorite.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_uuthich_selected));
				bntPlan.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_kehoach));
				Intent i = new Intent(AddPlan.this,FavoritesActivity.class);
				startActivity(i);
			}
		});
        
        bntAbout.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				bntAbout.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_thongtin_selected));
				bntPlan.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_kehoach));
				Intent i = new Intent(AddPlan.this,About.class);
				startActivity(i);
			}
		});
        
        bntBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				bntBack.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_back_selected));
				bntPlan.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.icon_kehoach));
				Intent i = new Intent(AddPlan.this,InformationTravelActivity.class);
				startActivity(i);
			}
		});
        
        bntSave.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
		});
        
        bntCancel.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
		});
	}
}
